import request from '@/utils/request'

// 查询公寓属性信息列表
export function listApartmentsAttributes(query) {
  return request({
    url: '/apartment/apartmentsAttributes/list',
    method: 'get',
    params: query
  })
}

// 查询公寓属性信息详细
export function getApartmentsAttributes(attributeId) {
  return request({
    url: '/apartment/apartmentsAttributes/' + attributeId,
    method: 'get'
  })
}

// 新增公寓属性信息
export function addApartmentsAttributes(data) {
  return request({
    url: '/apartment/apartmentsAttributes',
    method: 'post',
    data: data
  })
}

// 修改公寓属性信息
export function updateApartmentsAttributes(data) {
  return request({
    url: '/apartment/apartmentsAttributes',
    method: 'put',
    data: data
  })
}

// 删除公寓属性信息
export function delApartmentsAttributes(attributeId) {
  return request({
    url: '/apartment/apartmentsAttributes/' + attributeId,
    method: 'delete'
  })
}
